package com.wangrui.client.data;

import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.fields.DataSourceFloatField;
import com.smartgwt.client.data.fields.DataSourceIntegerField;
import com.smartgwt.client.data.fields.DataSourceTextField;

public class SipfA02XmlDS extends DataSource{
	
	public static SipfA02XmlDS instance = null;  
	

	public static SipfA02XmlDS getInstance(){
		
		if(instance == null){
			
			instance = new SipfA02XmlDS("sipfa02");
		}
		
		return instance;
	}

	public SipfA02XmlDS(String Id) {

		setID(id);   
        setTitleField("sipfa02");   
        setRecordXPath("/ROWSET/ROW");   
        DataSourceTextField oc_dateField = new DataSourceTextField("OC_DATE", "OC_DATE", 128);   
        DataSourceTextField zqgsdmField = new DataSourceTextField("ZQGSDM", "ZQGSDM");   
        DataSourceTextField yybdmField = new DataSourceTextField("YYBDM", "YYBDM");   
        DataSourceTextField yybmcField = new DataSourceTextField("YYBMC", "YYBMC", 128);   
        DataSourceTextField yybdndmField = new DataSourceTextField("YYBNBDM", "YYBNBDM", 128);   
        DataSourceTextField sjrqField = new DataSourceTextField("SJRQ", "SJRQ", 128);   

  
        setFields(oc_dateField, zqgsdmField, yybdmField, yybmcField, yybdndmField,sjrqField);   
  
        setDataURL("ds/sipfa02.data.xml");   
        setClientOnly(true); 
	}

}
